package com.ld.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@RestController
@RequestMapping
public class HelloController {

	@GetMapping("hello")
	public String hello(){
		int i = 10 / 0;
		return "hello";
	}

	@GetMapping("welcome")
	public void welcome(){
		int i = 10 / 0;
	}
}
